package com.xzj.common.feign.config;

import com.xzj.common.feign.interceptor.FeignInterceptor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: xzj-common
 * @ClassName: FeignConfig
 * @description: 集成feign模块调用配置
 * @author: XiaZunJun
 * @create: 2024-08-06 15:25
 */
@Configuration
public class FeignConfig {

    @ConditionalOnMissingBean
    @Bean
    public FeignInterceptor feignInterceptor() {
        return new FeignInterceptor();
    }

}
